package com.etong.citymap.module;

import java.util.Date;

import com.etong.citymap.db.annotation.Column;
import com.etong.citymap.db.annotation.Id;
import com.etong.citymap.db.annotation.Table;
import com.etong.citymap.util.DateUtil;

@Table(name = "singlecall")
public class SinglecallBean { // 单键拨号表
	@Id
	@Column(name = "id")
	private int id;
	@Column(name = "name")
	private String name;// 名称
	@Column(name = "phone")
	private String phone; // 号码
	@Column(name = "createdate")
	private String createdate;
	private boolean isSelect = false;

	public boolean isSelect() {
		return isSelect;
	}

	public void setSelect(boolean isSelect) {
		this.isSelect = isSelect;
	}

	public SinglecallBean() {
	}

	public SinglecallBean(int id, String name, String phone, boolean isSelect) {
		super();
		this.id = id;
		this.name = name;
		this.phone = phone;
		this.isSelect = isSelect;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getCreatedate() {
		createdate = DateUtil.setSimpleDateFormat(new Date(),
				"yyyy-MM-dd HH:mm:ss");
		return createdate;
	}

	public void setCreatedate(String createdate) {
		this.createdate = createdate;
	}

}
